<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 定义一个组件 -->
<footer th:fragment="com1">com1

    <!--/*@thymesVar id="user" type="com.bxn.thymeleaf_springboot.vo.UserVo"*/-->
    <h2 th:text="${user.name}">

    </h2>
</footer>

<div id = "com2">com2</div>

<div th:fragment="com3(message)">
    <p th:text="${message}"></p>
</div>


<div th:fragment="com4(message)">
    <div th:replace="${message}"></div>
</div>



</html>